<script type="text/javascript">
	if (typeof(TrainingComment) != 'function'){
		var arr = <?= ($this->arrJsCss != '')?$this->arrJsCss:"''"?>;			
		loadfileJsCss(arr);
	}		
</script>
<?php echo $this->leftTree;?>
<div class = "have_tree">
	<div class = "load_data_form_index">
		<form action="" method="POST" id="IndexCommentFrm" name="IndexCommentFrm" autocomplete="off">
			<!--Cac doi tuong hidden tren form-->
			<?php
				echo $this->formHidden("hdn_current_page",$this->iCurrentPage,null);
				echo $this->formHidden("hdn_record_number_page",$this->iNumberRecordPerPage,null);
				echo $this->formHidden("hdn_number",$this->iNumberRecordAll,null);
				echo $this->formHidden("C_STATUS",'DA_CHO_Y_KIEN',null); 
				echo $this->formHidden('TDSF01hdn','',null);  	
				echo $this->formHidden("TD03",'',null); 
				echo $this->formHidden("TD03name",'',null); 
				$arrConst = $this->arrConst;		
			?>
			<div >
				<div class = "normal_title">
					<?=$this->titleBody;?>				
				</div>
				<div class="search-container info_general">
				<table id="table-search" >
						<col width="15%"></col><col width="35%"></col><col width="15%"></col><col width="35%"></col>
						<tr>
							<td><label class="normal_label">Tìm tên bài giảng</label></td>
							<td><input type="text" class="textbox" id = "TD02" name = "TD02"></td>
							<td><label class="normal_label" style="padding-left:10px;">Lớp </label></td>
							<td>
									<select data-placeholder=" " name ="TDC02" id ="TDC02" style="width:90%;" class="chzn-select" tabindex="2">
										<option value="" selected="selected">---Chọn lớp học---</option>
									<?php 	
										echo Efy_Library::_generateSelectOption($this->arrListClass,'C_CODE','C_CODE','C_NAME','');
									?>
									</select></td>
						</tr>
						<tr>
							<td><label class="normal_label">Tìm năm học, Từ năm</label></td>
							<td><input type="text" class="textbox" value="<?= date('Y');?>" id="TD08" name="TD08"></td>
							<td><label class="normal_label" style="padding-left:10px;">Đến năm</label></td>
							<td><input type="text" class="textbox" value="<?= date('Y')+1;?>" id="TD09" name="TD09"></td>
						</tr>
						<tr>
							<td><label class="normal_label">Phòng ban</label></td>
							<td><select data-placeholder=" " name ="UNIT" id ="UNIT" style="width:90%;" class="chzn-select" tabindex="2">
								<option value="" selected="selected">---Chọn phòng ban---</option>
								<?php 	
									echo Efy_Library::_generateSelectOption($this->arrUnit,'id','id','name','');
								?>
								</select></td>
							<td><label class="normal_label" style="padding-left:10px;">Cán bộ</label></td>
							<td><select data-placeholder=" " name ="TD04" id ="TD04" style="width:90%;" class="chzn-select" tabindex="2">
								<option value="" selected="selected">---Chọn cán bộ---</option>
								<?php 	
									echo Efy_Library::_generateSelectOption($this->arrStaff,'id','id','name','');
								?>
							</select></td>
						</tr>
						<tr>
							<td><input type = "button" value = "Tìm kiếm" class = "link-button searchcmmtbtn" id = "searchcmmtbtn"></td>
							<td colspan="3"><input type="text" class="textbox" id="TD18" name="TD18"></td>
						</tr>
				</table>
			</div>
				<div align="right" class="button-link-container">
					<div class="blc-left">&nbsp;</div>
					<div class="blc-right">				
						<input type="button" style="display:inline" class="link-button cmmtbtn" value="Ý kiến cán bộ" title="Ý kiến cán bộ" id="cmmtbtn">
					</div>		
				</div>
				<!-- Action lien quan -->		
			</div>	
			<!-- Màn hình danh sách -->
			<div id = "table-container-comment"></div>
			<!--Hien thi trang can xem!-->
			<table class="table-page-number" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td class = "left-col small_label" valign="top">
						<small class="small_starmark" id = "sdocpertotal"></small>
					</td>
					<td class = "center-col" align="center" id = "generateStringNumberPage"></td>
					<td class = "right-col normal_label" id = "generateHtmlSelectBoxPage">Hiển thị <select class='textbox' id = 'cbo_nuber_record_page' name='cbo_nuber_record_page' optional='true' style='width:60'><?php 
						echo Efy_Library::_generateSelectOption($this->arrListItem, 'C_CODE', 'C_CODE', 'C_NAME', $this->arrListItem[0]);
					?></select>Hồ sơ/1 trang</td>
				</tr>
			</table>
			<div class="button-container">
				<input type="button" style="display:inline" class="link-button cmmtbtn" value="Ý kiến cán bộ" title="Ý kiến cán bộ" id="cmmtbtn">
		</div>		
		</form>
	</div>
	<div id = "load_data_form_comment"></div>
</div>
<script type="text/javascript">
	$(".chzn-select").chosen();
	baseUrl = '<?=$this->baseUrl();?>';
	objXml = baseUrl+'/xml/view/training/indexcommented.xml';			
	var objXmlTemp = '';
	if(typeof(myTrainingComment) === 'undefined'){						
		myTrainingComment = new TrainingComment(baseUrl,'mtl','training','indexcomment',objXml,objXmlTemp);			
	}else{	
		objXmlTemp = myTrainingComment.xmlDatacmt;		
		myTrainingComment = new TrainingComment(baseUrl,'mtl','training','indexcomment',objXml,objXmlTemp);
	}			
	myTrainingComment.ldmodcmmt();	
	urlPath = myTrainingComment.urlPath;	
	fixTitle();		
	
</script>	
<style type="text/css">
.jstree-default a.jstree-search {
color: #1A62B4;
font-weight: bold;
}

</style>